package com.mezz.bones.im.logic.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mezz.bones.im.common.message.body.in.PrivateMessageRecordReq;
import com.mezz.bones.im.logic.domain.entity.ChatPrivateMessageRecord;

import java.util.List;

/**
 * <p>
 * IM单聊 服务类
 * </p>
 *
 * @author mezz
 * @since 2024-12-20
 */
public interface IChatPrivateMessageRecordRepository extends IService<ChatPrivateMessageRecord> {

    boolean existsMsgKey(String msgKey);

    List<ChatPrivateMessageRecord> getUserPrivateMessagePage(PrivateMessageRecordReq req);

    void userMsgRemove(String msgId);

    ChatPrivateMessageRecord getMsgByUserIdAndKey(String userId, String msgKey);
}
